<?php

/*
 * Checks the syntax of all language files in the languages dir.
 * 
 * As language files specifically are included dynamically, it is possible
 * that a syntax error could be uncaught for some time.
 */

include '../test.php';


// this will handle the dependencies
$grammars = array();
foreach($luminous_grammars->ListGrammars() as $g)
{
  $grammars[] =  $luminous_grammars->GetGrammar($g[0]);
}



foreach(glob("$_LUMINOUS_ROOT/languages/*php") as $f)
  require_once($f);

foreach($grammars as $g)
  $g_ = new $g;

$l = new Luminous();
$lbr = new LuminousBoundaryRule(0, '', '');
$c = new LuminousCache('', '');
$lbd = new LuminousDelimiterRule(0, '', 0, '', '');
$f = new LuminousFormatterHTML();
$ls = new LuminousSimpleRule(0, '', 0, '');
$lsl = new LuminousSimpleRuleList(0, '', '', array());
